package com.bookhouse.service.impl;

import com.bookhouse.dao.BaseDao;
import com.bookhouse.dao.PressDao;
import com.bookhouse.entity.Press;
import com.bookhouse.service.PressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by CiusCheung on 16/4/7.
 */
@Service("pressService")
//@Transactional
public class PressServiceImpl extends BaseServiceImpl<Press> implements PressService{

    @Resource(name = "pressDao")
    private PressDao pressDao;

//    public PressService(){
//        super();
//    }

    @Override
    protected BaseDao<Press> getDao() {
        return this.pressDao;
    }

}
